<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;
?>

<?php
include_once "function_obj_time.php";


$in_array['Name']= $_POST['objname'];
$in_array['StartTime'] = $_POST['start_year_select']. '-'. $_POST['start_month_select']. '-'. $_POST['start_day_select']. 'T'. 
			 $_POST['start_hour_select']. ':'. $_POST['start_minite_select'];
$in_array['EndTime'] = $_POST['end_year_select']. '-'. $_POST['end_month_select']. '-'. $_POST['end_day_select']. 'T'. 
                         $_POST['end_hour_select']. ':'. $_POST['end_minite_select'];

$in_array['TimeType'] = 2;
SetXmlTimeObject($in_array);

include "function_misc_log.php";
$in_array['Name'] = "'". ($in_array['Name']). "'";
$in_array['StartTime'] = "'". ($in_array['StartTime']). "'";
$in_array['EndTime'] = "'". ($in_array['EndTime']). "'";

logger("Modify", $in_array,"Object_Time_Single");

include "function_web_misc.php";
PrintSuccessPageAndJump('obj_time_single_list.php');
//echo("<meta http-equiv='refresh'content=0;URL='obj_time_single_list.php'>");
?>
